package it.bela.pgcdc.common.service;

import it.bela.pgcdc.common.bean.BaseBean;
import it.bela.pgcdc.common.exception.ServiceException;

import java.util.List;

public interface BaseService<T extends BaseBean> {

	public boolean delete(T baseBean) throws ServiceException;
	public boolean persist(T baseBean) throws ServiceException;
	public boolean save(T baseBean) throws ServiceException;
	public boolean merge(T baseBean) throws ServiceException;
	public List<T> findByExample(T baseBean)throws ServiceException;
	public List<T> list()throws ServiceException;
	public T findById(Class<T> classe, Long id)throws ServiceException;
}
